package cn.b.sky.mes.qm.service;

import java.util.List;

import cn.b.sky.mes.qm.model.Repairmethod;
import cn.b.sky.mes.qm.model.condition.RepairmethodCondition;

public interface RepairmethodService {

  /**
   * 
   * <strong>Title : getRepairmethodsByCondition<br></strong>
   * <strong>Description : </strong>分页查询返修方法<br> 
   * <strong>Create on : 2015-12-14 下午3:14:42<br></strong>
   * <p>
   * @param condition
   * @return
   * List<Repairmethod>
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  List<Repairmethod> getRepairmethodsByCondition(RepairmethodCondition condition);

  /**
   * 
   * <strong>Title : getRepairmethodCountByCondition<br></strong>
   * <strong>Description : </strong>返修方法总数<br> 
   * <strong>Create on : 2015-12-14 下午3:15:10<br></strong>
   * <p>
   * @param condition
   * @return
   * int
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  int getRepairmethodCountByCondition(RepairmethodCondition condition);

  /**
   * 
   * <strong>Title : getRepairmethodBySiteCodeAndRepairmethodCode<br></strong>
   * <strong>Description : </strong>获取返修方法<br> 
   * <strong>Create on : 2015-12-14 下午3:20:07<br></strong>
   * <p>
   * @param siteCode
   * @param repairmethodCode
   * @return
   * Repairmethod
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  Repairmethod getRepairmethodBySiteCodeAndRepairmethodCode(String siteCode, String repairmethodCode);

  /**
   * 
   * <strong>Title : removeRepairmethodBySiteCodeAndRepairmethodCode<br></strong>
   * <strong>Description : </strong>删除<br> 
   * <strong>Create on : 2015-12-14 下午3:36:38<br></strong>
   * <p>
   * @param siteCode
   * @param repairmethodCode
   * @return 提示信息
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  String removeRepairmethodBySiteCodeAndRepairmethodCode(String siteCode, String repairmethodCode);

  /**
   * 
   * <strong>Title : saveRepairmethod<br></strong>
   * <strong>Description : </strong>保存<br> 
   * <strong>Create on : 2015-12-14 下午3:43:34<br></strong>
   * <p>
   * @param repairmethod
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  void saveRepairmethod(Repairmethod repairmethod);

  /**
   * 
   * <strong>Title : modifyRepairmethod<br></strong>
   * <strong>Description : </strong>修改<br> 
   * <strong>Create on : 2015-12-14 下午3:46:24<br></strong>
   * <p>
   * @param repairmethod
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  void modifyRepairmethod(Repairmethod repairmethod);

  /**
   * 
   * <strong>Title : getRepairmethodsForSuggest<br></strong>
   * <strong>Description : </strong>维修方法搜索建议<br> 
   * <strong>Create on : 2016年4月11日 下午8:34:47<br></strong>
   * <p>
   * @param condition
   * @return
   * List<Repairmethod>
   * @throws 
   * @author zhaoxin01<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  List<Repairmethod> getRepairmethodsForSuggest(RepairmethodCondition condition);

}
